package com.tubi.HashSet;

import java.util.HashSet;

public class HashSet2 {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        Student ronglei = new Student("ronglei", 12);
        Student rongle = new Student("rongle", 12);
        Student rongli = new Student("ronglei", 12);
        hs.add(rongle);
        hs.add(ronglei);
        hs.add(rongli);
        for (Student h : hs) {
            System.out.println(h);
        }
    }
}
